<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class UsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('users')->insert([
            [
                'username' => 'SD',
                'email' => '536336091@qq.com',
                'password' => bcrypt('123456'),
                'avatar' => 'https://iocaffcdn.phphub.org/uploads/images/201710/14/1/s5ehp11z6s.png?imageView2/1/w/200/h/200',
                'is_admin' => 1,
                'is_enable' => 1,
                'created_at' => date("Y-m-d H:i:s"),
                'updated_at' => date("Y-m-d H:i:s")
            ],
            [
                'username' => 'test',
                'email' => 'test@qq.com',
                'password' => bcrypt('123456'),
                'avatar' => 'https://iocaffcdn.phphub.org/uploads/images/201710/30/1/TrJS40Ey5k.png',
                'is_admin' => 1,
                'is_enable' => 1,
                'created_at' => date("Y-m-d H:i:s"),
                'updated_at' => date("Y-m-d H:i:s")
            ],
        ]);
    }
}
